package com.gitee.learning

import android.os.Bundle
import android.support.v4.view.ViewPager
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.ActionBarOverlayLayout
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_event_test.*

/**
 * 事件分发测试。
 */
class EventTestActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_event_test)

        buttonA.setOnClickListener {
            Toast.makeText(this, "按钮A被点击", Toast.LENGTH_LONG).show()
        }

        buttonB.setOnClickListener {
            Toast.makeText(this, "按钮B被点击", Toast.LENGTH_LONG).show()
        }
    }
}